package com.unitech.order.api.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 下订单时 订单 请求参数
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderParam implements Serializable {
    @NotNull(message = "订单号不能为空")
    private String id;
    @NotNull(message = "客户信息不能为空")
    private String customer;
    @NotNull
    @Size(min = 1, message = "订单不允许为空")
    private List<ItemParam> items;
}
